#ifndef CFPS_H_INCLUDED
#define CFPS_H_INCLUDED

#include <SDL/SDL.h>
#include "CFont.h"

class CFPS {
    public:
        static CFPS FPSControl;

    private:
        int     OldTime;
        int     LastTime;

        float   SpeedFactor;

        int     NumFrames;
        int     Frames;

    public:
        CFPS();

        void    OnLoop();

    public:
        int     GetFPS();

        float   GetSpeedFactor();

        void    ShowFPS(SDL_Surface* Surf_Src, TTF_Font* Font, int X, int Y);

        void    Delay();
};

#endif // CFPS_H_INCLUDED
